<?php
	include 'ourDate.php';
	include 'databaseHelper.php';
	include 'userHelper.php';

	$newName = $_GET['newName'];
	
	$allNames = userHelper::getAllUsernames();
	
	//print_r($allNames);
	
	if(in_array($newName, $allNames))
		$string = "'" . $newName . "' is already taken &nbsp; :(";
	else
		$string = "Available!";
		
	echo $string;
?>